package entity;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

//@Component
public class User {
    private int uid;
    private String uname;
    private String upwd;
    private int authority;

    public int getAuthority() {
        return authority;
    }

    public void setAuthority(int authority) {
        this.authority = authority;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public void setUpwd(String upwd) {
        this.upwd = upwd;
    }

    public int getUid() {
        return uid;
    }

    public String getUname() {
        return uname;
    }

    public String getUpwd() {
        return upwd;
    }

//    public User() {
//    }
//
//    public User(int uid, String uname, String upwd, int authority) {
//        this.uid = uid;
//        this.uname = uname;
//        this.upwd = upwd;
//        this.authority = authority;
//    }
//
//    public User(String uname, String upwd, int authority) {
//        this.uname = uname;
//        this.upwd = upwd;
//        this.authority = authority;
//    }

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", uname='" + uname + '\'' +
                ", upwd='" + upwd + '\'' +
                ", authority=" + authority +
                '}';
    }

}

